<template>
	<s-table ref="tableRef" :columns="columns" :data="loadData" bordered />
</template>
<script setup name="singleCall">
	import singleCallApi from '@/api/tjzy/call/single/singleCallApi'

	const tableRef = ref()
	const searchFormState = ref({
		companyName: ''
	})
	const columns = [
		{
			title: '拨打人',
			dataIndex: 'createName'
		},
		{
			title: '电话号码',
			dataIndex: 'phoneNumber'
		},
		{
			title: '拨打时间',
			dataIndex: 'dailingTime'
		}
	]
	//分页条件
	const loadData = (parameter) => {
		return singleCallApi.getList(Object.assign(parameter, searchFormState.value)).then((res) => {
			return res
		})
	}
</script>
